#include <iostream>

#include "Vector/vector.03.h"
#include "Visualizator/visualizator.02.h"

#include "icc.01.h"

using namespace std;


int main(int argc, char *argv[]) {

	ICC icc;
	
	uint N = 1000000;
	double r1 = 0;
	double r2 = 1;

	glutInit(&argc, argv); //initialize glut
	QApplication app(argc, argv);

	
	class MyVisualizator : public Visualizator {
		public:
		vector< Vector<float> > R;
		
		void initializeGL() {
			Visualizator::initializeGL();
			bufferArray(1, &(R[0].x), R.size()*sizeof(R[0]));
		}
		
		
		void paintGL() {
			Visualizator::paintGL();
			float color1[] = {0.5, 0.5, 0.5, 0};
			float color2[] = {0, 1, 0, 0};
			drawPointArray(1, R.size(), color1, color1, 0.1*pointSize, GL_ONE, GL_ONE, depthF, program, texture);	
		}
		
		
	} visualizator;
	
	visualizator.R = icc.getHernquistR<float>(N, 0.27);
	
	visualizator.show();
	
	return app.exec();
}

